Skip to content

Removed remote server for tests - #288

Merged
faogustavo merged 5 commits into
mainfrom
gv/local-test-server
Sep 14, 2026
Merged

faogustavo merged 5 commits into
mainfrom
gv/local-test-server

Conversation

@faogustavo

@faogustavo faogustavo commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
  • Removed remote server used for testing as nothing is ever consumed
  • Using testArtifacts() configuration instead, as that does not need a server at all
  • Fixed spmDirectory parameter, as it was generating the file in the project root during tests

@faogustavo faogustavo added this to the 1.3.0 milestone Sep 11, 2026
@faogustavo
faogustavo requested review from samhill303 and a lite review from Copilot September 11, 2026 21:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No blocking issues were identified; only minor documentation nits remain.

Pull request overview

This PR replaces the secret-backed remote test artifact service with a local Node.js server, enabling forked CI runs without test secrets.

Changes:

  • Adds and starts a local artifact server in CI.
  • Updates tests and artifact managers to use localhost.
  • Removes obsolete secret handling and documents local setup.
File summaries
File Reviewed changes
TESTING.md Documents local server setup.
kmmbridge/src/test/kotlin/co/touchlab/kmmbridge/SpmLocalDevTest.kt Removes remote server properties.
kmmbridge/src/test/kotlin/co/touchlab/kmmbridge/NonKmmBridgeTasksTest.kt Removes remote server properties.
kmmbridge/src/test/kotlin/co/touchlab/kmmbridge/BasePluginTest.kt Removes secret-file loading.
kmmbridge/src/test/kotlin/co/touchlab/kmmbridge/ArtifactManagerTest.kt Validates local artifact URLs.
kmmbridge-test/src/main/kotlin/Extensions.kt Configures the local test manager.
kmmbridge-test/src/main/kotlin/co/touchlab/kmmbridge/test/TestUploadArtifactManager.kt Uses local upload/download endpoints.
.gitignore Removes the obsolete secret ignore rule.
.github/workflows/build_mac.yml Starts and waits for the local server.
.github/scripts/test-artifact-server.js Implements the mock artifact server. The endpoint comment needs correction.
Review details
  • Files reviewed: 9/10 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/scripts/test-artifact-server.js Outdated
Comment thread TESTING.md Outdated
@faogustavo faogustavo changed the title Local Test Server Removeg remote server for tests Sep 14, 2026
@faogustavo faogustavo changed the title Removeg remote server for tests Removed remote server for tests Sep 14, 2026
assertTrue(urlValue.startsWith("https://api.touchlab.dev/infoadmin/streamTestZip"))
assertEquals(0, result.status)
assertTrue(urlFile.exists())
assertEquals("test://0.1.8", urlFile.readText())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is "0.1.8" coming from? It's not going to fail if we bump a version, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's from the test project gradle.properties LIBRARY_VERSION=0.1.8

@faogustavo
faogustavo merged commit 7b2d8c0 into main Sep 14, 2026
2 checks passed
@faogustavo
faogustavo deleted the gv/local-test-server branch September 14, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants